package com.yoshino.visitor;

import lombok.Data;

/**
 * @author yoshino
 **/
@Data
public abstract class Person {
    // 提供一个方法，让访问者可以访问
    public abstract void accept(Action action);

    private String name;

    public Person(String name) {
        this.name = name;
    }
}
